﻿@model ApriBox.Mvc.Models.RegisterModel
@{
    ViewBag.Title = "Register";
    SelectList countries = new SelectList(new List<string>() {
        "USA",
        "Britain",
        "Denmark",
        "German",
        "Nitherlands",
        "Poland",
        "Portugal",
        "Spain",
        "Sweden",
        "Russia",
        "Ukraine"
    }); 
}

<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    

    <fieldset id="regForm">
        <legend>Registration Form</legend>
        @Html.ValidationSummary()
        <ol>
            <li>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(m => m.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
            </li>
            <li>
                @Html.LabelFor(m => m.FirstName)
                @Html.TextBoxFor(m => m.FirstName)
            </li>
            <li>
                @Html.LabelFor(m => m.LastName)
                @Html.TextBoxFor(m => m.LastName)
            </li>
            <li>
                @Html.LabelFor(m => m.Country)
                @Html.DropDownListFor(m => m.Country,countries)
            </li>
            @*<li>
                @Html.LabelFor(m => m.DateOfBirth)
                @Html.TextBoxFor(m => m.DateOfBirth,new { type = "date", min = "1954-02-26", max = "2015-03-01" })                
            </li>*@
        </ol>
        <input type="submit" value="Register" />
    </fieldset>
    
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
